This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
dxl -> dom -> serialize() -> dxl ~Bella Opponelyings 19.Dec.03 10:32 PM a Web browser Domino Designer 6.5All Platforms
just one more thing... when i try a more simple test of just a domparser with input of a previously exported dxl file (3405kb), and output to an empty dxl file, I get a file that is 5009kb. I have tried with different character sets, but the file always comes out larger... and, as stated in my previous post, does not successfully import through the notesdxlimporer.
am i doing something wrong? please advise. thanks.
here is my simple code:
Sub Initialize
Dim session As NotesSession
Dim stream As NotesStream
Dim stream2 As NotesStream
Dim domParser As NotesDOMParser
Dim streamDXL As String
Set session = New NotesSession
Set stream = session.CreateStream
path$ = "c:\data\dxl\"
filename$ = "stream.dxl"
filename$ = path$ & filename$
If Not stream.Open(filename$, "ASCII") Then
Messagebox "Cannot open " & filename$,, "Error"
Exit Sub
End If
' Call stream.Truncate
Set stream2 = session.CreateStream
path$ = "c:\data\dxl\"
filename$ = "stream2.dxl"
filename$ = path$ & filename$
If Not stream2.Open(filename$, "UTF-8") Then
Messagebox "Cannot open " & filename$,, "Error"
Exit Sub
End If
Call stream2.Truncate